#ifndef TRIANGLEWINDOW_H
#define TRIANGLEWINDOW_H
#include "myopenglwindow.h"
#include <QOpenGLBuffer>
#include <QOpenGLShaderProgram>

class TriangleWindow : public MyOpenGLWindow
{
public:
    using MyOpenGLWindow::MyOpenGLWindow;
    void initialize() override;
    void render() override;

private:
    GLint m_matrixUniform = 0;
    QOpenGLBuffer m_vbo;
    QOpenGLShaderProgram *m_program = nullptr;
    int m_frame = 0;
};

#endif // TRIANGLEWINDOW_H
